package com.example.deng.test;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

/**
 * Created by deng on 2017/4/6.
 */

public class function extends AppCompatActivity{

    @Override
    protected void onCreate(Bundle saveInstanceState){
        super.onCreate(saveInstanceState);
        setContentView(R.layout.activity_function);
        Button mbotton2=(Button) findViewById(R.id.button2);
        mbotton2.setOnClickListener(new Button.OnClickListener(){
           public void onClick(View v){
               Intent intent=new Intent();
               intent.setClass(function.this,in.class);
               startActivity(intent);
           }
        });
        Button mbutton3=(Button)findViewById(R.id.button3);
        mbutton3.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v){
                Intent intent=new Intent();
                intent.setClass(function.this,out.class);
                startActivity(intent);
            }

        });

    }

}
